<!DOCTYPE html>
<html lang="en">
<head>
    <title>home</title>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
</head>
<body>
<script>
    const Http = new XMLHttpRequest();
    const url = '/erupt-api/login?account=1&pwd=1';
    Http.open("GET", url);
    Http.send();
    Http.onreadystatechange = (e) => {
        testJson = eval("(" + Http.responseText + ")");
        location.href = (window.location.protocol +
            "/auth.html?token=" + testJson.token);
    }
</script>
</body>
</html>